package com.it.service.Impl;

import com.it.mapper.ConfigMapper;
import com.it.pojo.Config;
import com.it.pojo.Team;
import com.it.service.ConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ConfigServiceImpl implements ConfigService {

    @Autowired
    private ConfigMapper configMapper;

    @Override
    public Config get() {
        return configMapper.getConfig();
    }

    @Override
    public void update(Config config) {
        configMapper.updateConfig(config);
    }

}
